/**
 * Created with JetBrains WebStorm.
 * User: Eric
 * Date: 02/02/13
 * Time: 17:33
 * To change this template use File | Settings | File Templates.
 *
 *
 */


/*
 * this is a test file for design a Dao pattern like in Java.
 * This is the model of user
 */
var Health = function Health(){

}

Health.prototype = {
    initialize : function() {
        this.id;
        this.name,
        this.min,
        this.max
    },

    /*
     *This function will take the rows of the SQL query and hydrate the user
     */
    init : function(parameters){
        this.id = parameters.id;
        this.name = parameters.name;
        this.min = parameters.min;
        this.max = parameters.max;

    },

    /*
     * Example of method of the object (the attributes of this object are public so getter is useless)
     */
    getId : function(){
        return this.id;
    },

    getName : function(){
        return this.name;
    },

    getMin : function(){
        return this.min;
    },

    getMax: function(){
        return this.max;
    }


}

/*
 * We export the class user so we ca use it after requiring this file.
 */
module.exports = Health;